package com.camel.docker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PagesController {
    public static final String HOME_PAGE_PATH = "/index";

    public static final String LOGIN_PAGE_PATH = "/login";



    @RequestMapping
    public String home() {
        return HOME_PAGE_PATH;
    }

    @RequestMapping(HOME_PAGE_PATH)
    public String index() {
        return HOME_PAGE_PATH;
    }

    @RequestMapping("/index.html")
    public String indexPage() {
        return HOME_PAGE_PATH;
    }

    @RequestMapping("/logout")
    public String logout() {
        return LOGIN_PAGE_PATH;
    }


}
